package job.relevance.anchor_weight;

import java.io.IOException;

import mapred.base.TextMapper;

import org.apache.hadoop.io.Text;

public class RLV_AW_AnchorPageRank_Mapper extends TextMapper {

    @Override
    public void map(Text key, Text value) throws IOException {
        String v = value.toString();
        if (v.startsWith("#")) {
            this.output(key, value);
        } else {
            this.output(key, new Text(v.split("\t")[0]));
        }
    }

    @Override
    public void setUp() {
    }

    @Override
    public void tearDown() throws IOException {
    }

}
